﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GlassStore.ViewModels.GlassManagerViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	添加眼镜
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>添加眼镜</h2>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Create", "GlassManager", FormMethod.Post, new { enctype = "multipart/form-data" }))
       {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>眼镜信息</legend>
            
            <%:Html.EditorFor(m => m.Glass, new {TopCatalogues=Model.TopCatalogues, MaterialList = Model.MaterialList, StyleList=Model.StyleList, OpticsGlasses=Model.OpticsGlasses, SunGlasses=Model.SunGlasses})%>

            <p>
                <input type="submit" value="添加" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("返回", "Index") %>
    </div>

</asp:Content>

